From 451e4dffd000169e7113aa3275e4acaf7f1fbbbc Mon Sep 17 00:00:00 2001 From: Factiven Date: Tue, 24 Oct 2023 20:27:32 +0700 Subject: Update v4.2.2 --- pages/api/v2/etc/recent/[page].js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pages/api/v2/etc/recent/[page].js') diff --git a/pages/api/v2/etc/recent/[page].js b/pages/api/v2/etc/recent/[page].js index b1bda0f..e21c38e 100644 --- a/pages/api/v2/etc/recent/[page].js +++ b/pages/api/v2/etc/recent/[page].js @@ -1,8 +1,8 @@ import { rateLimiterRedis, redis } from "@/lib/redis"; let API_URL; -API_URL = process.env.API_URI; -if (API_URL.endsWith("/")) { +API_URL = process.env.API_URI || null; +if (API_URL && API_URL.endsWith("/")) { API_URL = API_URL.slice(0, -1); } -- cgit v1.2.3